/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model.Construction.BatimentAttractif;

import Model.Construction.Batiment;
import Model.Ville;

/**
 *
 * @author light
 */
public abstract class BatimentAttractif extends Batiment {
    
    protected int attractivite = 0;
    protected int securite = 0;


    public BatimentAttractif(int tx, int ty, Ville v, int prix, int attrac) {
        super(tx, ty, v, prix);
        attractivite = attrac;
        ville.addAttractivite(attractivite);
    }

    @Override
    public void destruction() {
        super.destruction();
        ville.removeAttractivite(attractivite);
        ville.removeSecurite();
    }
    
}
